<div class="box-category mar-top-10">
<?php
                		$tblBane = new Zendvn_Models_Advert();
						$bane = $tblBane->listItem($view->arrParam,array('task'=>'public'));
                		if (!empty($bane)){
	                		foreach ($bane as $key =>$val){
	                			if($val['position_name'] == 'right-all' && $val['special'] == 0){
	                				$name = $val['name'];
		                			if(!empty($val['picture'])){
		                				if($val[type] == 0){
		                					$linkImg	= FILES_URL . '/adverts/orignal/' . $val['picture'];
					                    	$picture 	= '<img src="'. $linkImg .'" width="280" alt="'.$name.'" />';
		                				}elseif ($val[type] == 1) {
		                					$linkImg	= FILES_URL . '/flashs/' . $val['picture'];
					                    	include 'includes/flash_right.php';
		                				}
					                    
					                }else{
					                    $linkImg	= FILES_URL . '/adverts/images450x450/no-image.jpg';
					                    $picture 	= '<img width="260" height="259" src="'. $linkImg .'" alt="'.$name.'" />';
					                }
					                
		                			if(empty($val['url'])){
			                			$lang = $view->arrParam['lang'];
										 if(empty($lang)){
										    $lang = 'vi';
										}else{
										    $lang = $view->arrParam['lang'];
										}
		                				$urlOptions = array('module'=>'news','controller'=>'index',
																			'action'=>'advert',
																			'id'=>$val['id'],
																			'title'=>$val['alias'],
						                    								'lang'=>$lang);
						                 $linkDetail = $view->url($urlOptions,'advert-detail');
					                }else{
					                	$linkDetail = $val['url'];
					                }
					                
                	?>
                	<a class="advert mar-btn-10" target="_blank" href="<?php echo $linkDetail?>">
                    	<?php echo $picture?>
                    	<a style="height: 305px" target="_blank" class="link-advert" href="<?php echo $linkDetail?>"></a>
                    </a>
                    <?php }}}?>
</div> 